// const thenalbe = {
//     then(resolve) {
//         console.log(2);
//         resolve();
//     }
// }

const promise = new Promise((resolve) => {
    console.log(2);
    resolve();
})

const p = Promise.resolve(promise).then(() => console.log('then'));
console.log(p)
console.log('then after')

// const originalPromise = new Promise(resolve => setTimeout(() => resolve("原始值"), 100));
// const wrappedPromise = Promise.resolve(originalPromise);
//
// // wrappedPromise 与 originalPromise 是同一个引用
// console.log(wrappedPromise === originalPromise); // true
// wrappedPromise.then((value) => {
//     console.log(value)
// })
